package _05_hoursework;

public class IfElseIfElseDemo {
    public static void main(String[] args){
        //需求：演示if-else if-else语句的使用
        int a = 10;
        int b = 20;
        System.out.println("begin...");
        if (a>b){
            System.out.println(a+"大于"+b);
        }else if(a == b){
            System.out.println(a+"等于"+b);
        }else{
            System.out.println(a+"小于"+b);
        }
        System.out.println("end...");
    }
}
